package com.example.building_material_mannager.controller;

import com.example.building_material_mannager.entity.PaymentAndPurchasetable;
import com.example.building_material_mannager.entity.SelectType;
import com.example.building_material_mannager.service.PaymentService;
import com.example.building_material_mannager.util.PageUtil;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class PaymentController {
    @Resource
    PaymentService paymentService;

    //分页查询
    public PageUtil<List<PaymentAndPurchasetable>> selectPayment(SelectType collectionSelectType){

        return paymentService.selectPayment(collectionSelectType);
    }
}
